#!/bin/sh
lilypond -fpng $1.ly
convert $1.png -trim ../images/$1.png
lilypond -dbackend=svg $1.ly
scala -classpath /home/kalvis/workspace/scala-songs/out lv.ante.songs.SvgTrimmer $1

mv $1.midi ../music/
rm $1.png
rm $1.ps
rm $1.svg

gwenview ../images/$1.png
